const Koa = require('koa');
const app = new Koa();
const router = require('./router');
const cors = require('koa-cors');
const bodyparser = require('koa-bodyparser');

app.use(cors())
app.use(bodyparser())
app.use(router())
app.listen(8000, () => {
    console.log('http://localhost:8000');
});